<?php

class AbstractModel extends Zend_Db_Table
{
	
	protected $_fieldsToDisplay = array('id');
	
	/**
	 * 
	 * Get a SQL row and returns an array with te wanted fields
	 * @param Zend_Db_Table_Row $row
	 * @param array $fields
	 */ 
	public function getArrayFromRow($row) {
		$result = array();
		foreach ($this->_fieldsToDisplay as $key) {
			$result[$key] = $row->$key;
		}
    	return $result;
	}
}
